package xpn.platform.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

/**
 * Spring Mvc配置
 * 
 * @author bobatkm Sep 8, 2017
 *
 */
@Configuration
public class SpringMvcConfigurer extends WebMvcConfigurationSupport  {
	/*
	 * 指定静态资源的路径
	 */
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");
		super.addResourceHandlers(registry);
	}
}


